namespace Crux.Core.StackExchangeRedis;
/// <summary>
/// IRedisFacade
/// </summary>
public interface IRedisFacade
{
    /// <summary>
    ///
    /// </summary>
    IConnectionMultiplexer Multiplexer { get; }
    /// <summary>
    ///
    /// </summary>
    /// <returns></returns>
    IDatabase GetDatabase(int db = -1, object? asyncState = null);

    /// <summary>
    ///
    /// </summary>
    /// <param name="asyncState"></param>
    /// <returns></returns>
    ISubscriber GetSubscriber(object? asyncState = null);
}